package com.hiyee.pojo.bo;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.boot.context.properties.bind.DefaultValue;

/**
 * 商品搜索参数
 *
 * @author WangBin
 */
public class GoodsSearchBO {
    private String sort_by; // 排序方式
    private String sort_type; // 排序方式
    private Integer category_id; // 分类id
    private String name; // 关键词
    @JsonProperty(defaultValue = "1")
    private Integer page = 1; // 页数
    @JsonProperty(defaultValue = "20")
    private Integer page_size = 20; // 每页显示条数

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageSize() {
        return page_size;
    }

    public void setPageSize(Integer page_size) {
        this.page_size = page_size;
    }

    public String getSortBy() {
        return sort_by;
    }

    public void setSortBy(String sort_by) {
        this.sort_by = sort_by;
    }

    public String getSortType() {
        return sort_type;
    }

    public void setSortType(String sort_type) {
        this.sort_type = sort_type;
    }

    public Integer getCategoryId() {
        return category_id;
    }

    public void setCategoryId(Integer category_id) {
        this.category_id = category_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
